package locations.actions;

import locations.dao.implement.ProfesionalDAOHibernateJPA;

import com.opensymphony.xwork2.ActionSupport;

public class DeleteProfesionalAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;

	@Override
	public String execute() throws Exception {
		ProfesionalDAOHibernateJPA d = new ProfesionalDAOHibernateJPA();
		d.delete(Long.parseLong(getId()));
		return SUCCESS;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
